<template>
  <div id="components-layout-demo-basic">
<a-layout>
      <a-layout-sider><navbar :menus="menus"></navbar></a-layout-sider>
      <a-layout>
        <a-layout-header>Header</a-layout-header>
        <a-layout-content><router-view></router-view></a-layout-content>
        <a-layout-footer>Footer</a-layout-footer>
      </a-layout>
    </a-layout>
  </div>
</template>

<script scoped>
import index from '../router/index'
import Navbar from './Navbar'
export default {
  components: {
    Navbar
  },
  computed:{
    menus(){
      return index
    }
  }
}
</script>

<style scoped>
#components-layout-demo-basic {
  text-align: center;
}
#components-layout-demo-basic .ant-layout-header,
#components-layout-demo-basic .ant-layout-footer {
  background: #7dbcea;
  color: #fff;
}
#components-layout-demo-basic .ant-layout-footer {
  line-height: 1.5;
}
#components-layout-demo-basic .ant-layout-sider {
  background: #fff;
  color: #fff;
  width: 1000px;
}
#components-layout-demo-basic .ant-layout-content {
  background: #fff(16, 142, 233, 1);
  color: #fff;
  /* min-height: 835px;
  line-height: 120px; */
  min-height:calc(100vh - 133px) ;
}
#components-layout-demo-basic > .ant-layout {
  margin-bottom: 48px;
}
#components-layout-demo-basic > .ant-layout:last-child {
  margin: 0;
}

</style>
